import CurrencyFormatter from 'currency-formatter'

const money = (value, show = true) => {
  return CurrencyFormatter.format(value, { locale: 'es-ES', format: '%v' + (show ? '%s' : '')})
}

export default money